package cn.zhku.edu.feign.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ProductCommentVO {
    private Integer cid;

    private Integer gid;

    private String uid;

    private String username;

    private String avatar;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    private String commentDetails;

    public ProductCommentVO(Integer cid, Integer gid, String uid, String username, String avatar, Date commentTime, String commentDetails) {
        this.cid = cid;
        this.gid = gid;
        this.uid = uid;
        this.username = username;
        this.avatar = avatar;
        this.commentTime = commentTime;
        this.commentDetails = commentDetails;
    }
}
